package com.cy.网络编程.tcp.work;

import java.net.Socket;

public class Client {
    public static void main(String[] args) throws Exception {
        //1.链接服务器
        Socket s = new Socket("localhost", 8989);
        //2.不停的发送消息
        new SendMsgThread(s).start();
        //3.不停的接受消息
        new ReceMsgThread(s).start();
    }
}
